Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rk3399 based SBC Leez P710 #6749

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

andyshrk
Copy link
Contributor

Description

Add support for rk3399 based SBC Leez P710

How Has This Been Tested?

Build noble desktop img with command:
./compile.sh build BOARD=leez-rk3399 BRANCH=edge BUILD_DESKTOP=yes BUILD_MINIMAL=no DESKTOP_APPGROUPS_SELECTED='browsers chat desktop_tools editors email internet multimedia office programming remote_desktop' DESKTOP_ENVIRONMENT=gnome DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DOWNLOAD_MIRROR=bfsu EXPERT=yes EXTRAWIFI=no KERNEL_CONFIGURE=no PREFER_DOCKER=no RELEASE=noble

Write the output img to tf card, inserd the card into the board, power up the board, the board can run into noble desktop.

Checklist:

  • [ ✓] My code follows the style guidelines of this project
  • [✓] ] I have performed a self-review of my own code
  • [ ✓]] I have commented my code, particularly in hard-to-understand areas
  • [ ✓]] My changes generate no new warnings
  • [ ✓]] Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added size/small PR with less then 50 lines Hardware Hardware related like kernel, U-Boot, ... labels Jun 16, 2024
config/boards/leez-rk3399.csc Outdated Show resolved Hide resolved
@ColorfulRhino
Copy link
Collaborator

You could also try setting to use BOOT_SCENARIO="spl-blobs" mainline u-boot SPL in place of rockchip miniloader. i don't have an overview over rk3399 boards if any are using fully blobbed U-Boot (BOOT_SCENARIO="only-blobs" is default).

@andyshrk
Copy link
Contributor Author

You could also try setting to use BOOT_SCENARIO="spl-blobs" mainline u-boot SPL in place of rockchip miniloader. i don't have an overview over rk3399 boards if any are using fully blobbed U-Boot (BOOT_SCENARIO="only-blobs" is default).

In fact mainline u-boot support TPL+SPL for this board, so I use BOOT_SCENARIO="blobless" in v3

@ColorfulRhino
Copy link
Collaborator

ColorfulRhino commented Jun 17, 2024

In fact mainline u-boot support TPL+SPL for this board, so I use BOOT_SCENARIO="blobless" in v3

Awesome!

Edit: Did you check if blobless U-Boot also works if you flash it to the eMMC?

@andyshrk
Copy link
Contributor Author

In fact mainline u-boot support TPL+SPL for this board, so I use BOOT_SCENARIO="blobless" in v3

Awesome!

Edit: Did you check if blobless U-Boot also works if you flash it to the eMMC?

Yes,I flash the system to eMMC by nand-sata-install,the system can boot when i remove TF card:

`
U-Boot TPL 2022.07-armbian (Jun 17 2024 - 20:05:45)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2022.07-armbian (Jun 17 2024 - 20:05:45 +0800)
Trying to boot from MMC2
NOTICE: BL31: lts-v2.8.8(release):armbian
NOTICE: BL31: Built : 20:05:34, Jun 17 2024
INFO: GICv3 with legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: Maximum SPI INTID supported: 287
INFO: plat_rockchip_pmu_init(1624): pd status 3e
INFO: BL31: Initializing runtime services
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot 2022.07-armbian (Jun 17 2024 - 20:05:45 +0800)

SoC: Rockchip rk3399
Reset cause: POR
Model: Leez RK3399 P710
DRAM: 3.9 GiB
PMIC: RK808
Core: 260 devices, 24 uclasses, devicetree: separate
MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial@ff1a0000
Out: serial@ff1a0000
Err: serial@ff1a0000
Model: Leez RK3399 P710
Net: eth0: ethernet@fe300000
Hit any key to stop autoboot: 0
starting USB...
Bus usb@fe380000: ehci_generic usb@fe380000: Failed to get resets (err=-524)
probe failed, error -524
Bus usb@fe3c0000: ehci_generic usb@fe3c0000: Failed to get resets (err=-524)
probe failed, error -524
Bus usb@fe800000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fe900000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe800000 for devices... 1 USB Device(s) found
scanning bus usb@fe900000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3920 bytes read in 18 ms (211.9 KiB/s)
Executing script at 00500000
Boot script loaded from mmc 0:1
216 bytes read in 15 ms (13.7 KiB/s)
21198798 bytes read in 2023 ms (10 MiB/s)
30677504 bytes read in 2923 ms (10 MiB/s)
79979 bytes read in 41 ms (1.9 MiB/s)
2825 bytes read in 48 ms (56.6 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
Executing script at 09000000
Trying kaslrseed command... Info: Unknown command can be safely ignored since kaslrseed does not apply to all boards.
Unknown command 'kaslrseed' - try 'help'
Moving Image from 0x2080000 to 0x2200000, end=3ff0000
Loading init Ramdisk from Legacy Image at 06000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 21198734 Bytes = 20.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Host not halted after 16000 microseconds.
Host not halted after 16000 microseconds.
Loading Ramdisk to f4ae6000, end f5f1d78e ... OK
Loading Device Tree to 00000000f4a6a000, end 00000000f4ae5fff ... OK

Starting kernel ...
`

Signed-off-by: Andy Yan <andyshrk@gmail.com>
Signed-off-by: Andy Yan <andyshrk@163.com>
Copy link
Collaborator

@ColorfulRhino ColorfulRhino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now 👍 Thanks!

By the way, if you want to put a whole passage in code, you need to use three ``` (or just use the GitHub UI, mark the text and press "code")

@ColorfulRhino ColorfulRhino added Ready to merge Reviewed, tested and ready for merge 08 Milestone: Third quarter release labels Jun 18, 2024
@andyshrk
Copy link
Contributor Author

Looks good to me now 👍 Thanks!

By the way, if you want to put a whole passage in code, you need to use three ``` (or just use the GitHub UI, mark the text and press "code")

Get it, thanks a lot.

@ColorfulRhino ColorfulRhino merged commit 7919729 into armbian:main Jun 18, 2024
11 checks passed
@EvilOlaf
Copy link
Member

forum tag added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 Milestone: Third quarter release Hardware Hardware related like kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

3 participants